import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'


// Vue.prototype.$myRuquest=myRequest
// Vue.prototype.$haha = 5

Vue.filter('formatDate',(date)=>{
	const nDate=new Date(date)
	const year=nDate.getFullYear()
	const month=nDate.getMonth().toString().padStart(2,0)
	const day=nDate.getDay()+toString().padStart(2,0)
	return year +'-'+month+'-'+day
})


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})



app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { myRequest } from './util/api.js'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$myRuquest = myRequest
  return {
    app
  }
}


// #endif